   {%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
   <style>
        @media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
        table, thead, tbody, th, td, tr { 
            display: block; 
        }
        thead tr { 
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        td { 
            border: none;
            border-bottom: 1px solid #eee; 
            position: relative;
            padding-left:44% !important; 
            padding-top:10px ;
        }
        #mytable tr{ margin-bottom:20px;}
        td:before { 
            position: absolute;
            top:10px;
            left:8px;
            width: 45%; 
            padding-right:10px;
            white-space: nowrap;
        }
            td:nth-of-type(1):before { content: "编号"; }
            td:nth-of-type(2):before { content: "教师姓名"; }
            td:nth-of-type(3):before { content: "迟到"; }
            td:nth-of-type(4):before { content: "早退"; }
            td:nth-of-type(5):before { content: "旷工"; }
            td:nth-of-type(6):before { content: "备注"; }
            td:nth-of-type(7):before { content: "操作"; }
        }
        
    </style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">值日考勤表</p>
                    <a href="index.php?a=memberac.checkin" class="btn btn-success btn-sm" style="float:right; color:#fff;">批量导入</a>
                  <a href="index.php?a=memberac.checkoutdata&attend_smonth={%$attend_smonth%}&semester_id={%$semester_id%}" target="_blank" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-right:15px;">导 出</a>
                </div>
             <form name="myform" action="" method="get">
                 <div class="box-body">
                     <div class="col-md-3 col-xs-6 form-group">
                         <label class="col-sm-4 control-label text-right" style="padding:0; font-weight:500;">
                             学年学期：
                         </label>
                         <div class="input-group col-md-8 col-xs-12">
                             <select class="form-control" id="semester_id" name="semester_id">
                                 <option value="">请选择</option>
                                 {%foreach from=$semester_lists key=key item=value%}
                                 <option value="{%$key%}"{%if $key==$semester_id%}selected{%/if%}>
                                     {%$value%}</option>
                                 {%/foreach%}
                             </select>
                         </div>
                     </div>
                     <div class="col-md-2 col-xs-6 form-group">
                         <label class="col-sm-5 control-label text-right" style="padding:0; font-weight:500;">
                             学月：
                         </label>
                         <div class="input-group col-md-7 col-xs-12">
                             <select class="form-control" name="attend_smonth" id="semester_month">
                                 <option value="">请选择</option>
                                 {%foreach from=$month_lists key=key item=value%}
                                 <option value="{%$key%}"{%if $key==$attend_smonth%}selected{%/if%}>
                                     {%$key%}</option>
                                 {%/foreach%}
                             </select>
                         </div>
                     </div>
                     <input type="hidden" name="a" value="memberac.Check">
                     <button type="submit" class="btn btn-primary">查 询</button>
                     <div style="clear:both; height:2px;"></div>
             </form>
                    <div class="box-body">
                         <h4 class="text-center"> 值日生考勤表</h4>
                         <table class="table table-bordered" id="mytable">
                           <thead>                       
                                <tr>
                                    <td>编号</td>
                                     <td>姓名</td>
                                    <td>早退</td>
                                    <td>迟到</td>
                                    <td>病假</td>
                                    <td>事假</td>
                                    <td>逃课</td>
                                     <td>备注</td>

                                </tr>
                            </thead>
                            <tbody>
                            {%foreach from=$check_lists key=key item=value%}
                                <tr>
                                    <td>{%$value.student_no%}</td>
                                     <td>{%$value.student_name%}</td>
                                     <td>{%$value.early%}</td>
                                    <td>{%$value.late%}</td>
                                    <td>{%$value.ill%}</td>
                                    <td>{%$value.thing%}</td>
                                    <td>{%$value.esc%}</td>
                  
                                     <td>{%$value.remark%}</td>

                               </tr>
  {%/foreach%}
                           </tbody>
                         </table> 
                         
                    </div><!--box-body -->
					<div class="box-footer">
                     {%$page%}
					 </div>
             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
    {%include file="index.footer.tpl.php"%}